/*
 * @Author: your name
 * @Date: 2020-06-30 11:05:29
 * @LastEditTime: 2020-08-04 14:33:16
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /yigo/src/Utils/Cell.js
 */ 
import React, { Component } from 'react'
import { Text, View } from 'react-native'

export class Cell extends Component {
    render() {
        let {title,value} = this.props;
        // console.log("长度:",value.length,value ,"标题长度:",title.length,title);
        return (
            <View style={{flexDirection:'row'}}>
                {(title.indexOf("统一社会信用代码:") != -1) ?
                <Text style={{flex:1, alignItems:'baseline'}}>
                    {title}{'\t'}<Text style={{flex:1, color:'#808080',flexWrap:'wrap'}}>{value}</Text>
                </Text>

                :
                <>
                    <Text>{title}</Text>
                    <Text style={{flex:1, color:'#808080'}}>{value}</Text>
                </>
                }
                 
            </View>
        )
    }
}

